package blackitheima2.ClassDemo;

import blackitheima2.Domain.Student;

//类加载---为了反射
public class MyClass {
    public static void main(String[] args) throws ClassNotFoundException {
        Class<?> aClass = Class.forName("blackitheima2.Domain.Student");
        System.out.println(aClass);

        Class<Student> studentClass = Student.class;
        System.out.println(studentClass);

        Student s=new Student();
        Class<? extends Student> aClass1 = s.getClass();
        System.out.println(aClass1);
    }
}
